.PHONY:all
all:publish_client consume_client

publish_client:publish_client.cc ../mqcommon/mq_proto.pb.cc ../mqcommon/mq_msg.pb.cc ../third/include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -I../third/include -L../third/lib -lmuduo_net -lmuduo_base -lprotobuf -lpthread -lz -g -w
consume_client:consume_client.cc ../mqcommon/mq_proto.pb.cc ../mqcommon/mq_msg.pb.cc ../third/include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -I../third/include -L../third/lib -lmuduo_net -lmuduo_base -lprotobuf -lpthread -lz -g -w

.PHONY:clean
clean:
	rm -rf consume_client publish_client
